home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Morphos / GCC / os-includeppc / inline / wb.h < prev   
C/C++ Source or Header  |  1997-04-14  |  2KB  |  58 lines

  1. /* Automatically generated header! Do not edit! */
  2.  
  3. #ifndef _INLINE_WB_H
  4. #define _INLINE_WB_H
  5.  
  6. #ifndef __INLINE_MACROS_H
  7. #include <inline/macros.h>
  8. #endif /* !__INLINE_MACROS_H */
  9.  
  10. #ifndef WB_BASE_NAME
  11. #define WB_BASE_NAME WorkbenchBase
  12. #endif /* !WB_BASE_NAME */
  13.  
  14. #define AddAppIconA(id, userdata, text, msgport, lock, diskobj, taglist) \
  15.     LP7A4(0x3c, struct AppIcon *, AddAppIconA, unsigned long, id, d0, unsigned long, userdata, d1, UBYTE *, text, a0, struct MsgPort *, msgport, a1, struct FileLock *, lock, a2, struct DiskObject *, diskobj, a3, struct TagItem *, taglist, d7, \
  16.     , WB_BASE_NAME)
  17.  
  18. #ifndef NO_INLINE_STDARG
  19. #define AddAppIcon(a0, a1, a2, a3, a4, a5, tags...) \
  20.     ({ULONG _tags[] = { tags }; AddAppIconA((a0), (a1), (a2), (a3), (a4), (a5), (struct TagItem *)_tags);})
  21. #endif /* !NO_INLINE_STDARG */
  22.  
  23. #define AddAppMenuItemA(id, userdata, text, msgport, taglist) \
  24.     LP5(0x48, struct AppMenuItem *, AddAppMenuItemA, unsigned long, id, d0, unsigned long, userdata, d1, UBYTE *, text, a0, struct MsgPort *, msgport, a1, struct TagItem *, taglist, a2, \
  25.     , WB_BASE_NAME)
  26.  
  27. #ifndef NO_INLINE_STDARG
  28. #define AddAppMenuItem(a0, a1, a2, a3, tags...) \
  29.     ({ULONG _tags[] = { tags }; AddAppMenuItemA((a0), (a1), (a2), (a3), (struct TagItem *)_tags);})
  30. #endif /* !NO_INLINE_STDARG */
  31.  
  32. #define AddAppWindowA(id, userdata, window, msgport, taglist) \
  33.     LP5(0x30, struct AppWindow *, AddAppWindowA, unsigned long, id, d0, unsigned long, userdata, d1, struct Window *, window, a0, struct MsgPort *, msgport, a1, struct TagItem *, taglist, a2, \
  34.     , WB_BASE_NAME)
  35.  
  36. #ifndef NO_INLINE_STDARG
  37. #define AddAppWindow(a0, a1, a2, a3, tags...) \
  38.     ({ULONG _tags[] = { tags }; AddAppWindowA((a0), (a1), (a2), (a3), (struct TagItem *)_tags);})
  39. #endif /* !NO_INLINE_STDARG */
  40.  
  41. #define RemoveAppIcon(appIcon) \
  42.     LP1(0x42, BOOL, RemoveAppIcon, struct AppIcon *, appIcon, a0, \
  43.     , WB_BASE_NAME)
  44.  
  45. #define RemoveAppMenuItem(appMenuItem) \
  46.     LP1(0x4e, BOOL, RemoveAppMenuItem, struct AppMenuItem *, appMenuItem, a0, \
  47.     , WB_BASE_NAME)
  48.  
  49. #define RemoveAppWindow(appWindow) \
  50.     LP1(0x36, BOOL, RemoveAppWindow, struct AppWindow *, appWindow, a0, \
  51.     , WB_BASE_NAME)
  52.  
  53. #define WBInfo(lock, name, screen) \
  54.     LP3NR(0x5a, WBInfo, BPTR, lock, a0, STRPTR, name, a1, struct Screen *, screen, a2, \
  55.     , WB_BASE_NAME)
  56.  
  57. #endif /* !_INLINE_WB_H */
  58.